package com.example.service.provider;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

//发服务注册中心发现该服务，并注册该服务到服务注册中心中
@EnableEurekaClient
//开启服务熔断降级支持
@EnableHystrix
@SpringBootApplication
public class Service1ProviderApplication {
    @HystrixCommand

    public static void main(String[] args) {
        SpringApplication.run(Service1ProviderApplication.class, args);
    }

}
